package com.eaoa.utils;

import com.eaoa.vo.pub.PubAccount;
import com.stony.core.util.CoreUtils;
import com.stony.core.util.LabelValue;

public class User implements LabelValue {

	private PubAccount employee;

	public User(PubAccount employee) {
		super();
		this.employee = employee;
	}

	public int compareTo(Object o) {
		return employee.compareTo(((User) o).getEmployee());
	}

	public String getLabel() {
		return employee.getLabel();
	}

	public String getLabelshort() {
		return employee.getLabelshort();
	}

	public String getValue() {
		return CoreUtils.formatString(employee.getAccountno());
	}

	public PubAccount getEmployee() {
		return employee;
	}

}
